window.onload = function(){
//首页投票按钮
	var oShareBtn = document.getElementById("shareBtn");
	var oClose = document.getElementById("closeVote");
	var oalertBg = document.getElementById("alertBg");
	oShareBtn.onclick = function(){
		oalertBg.style.display = "block";
		oClose.style.display = "block";
	}
	//点击黑色区域
	oalertBg.onclick = function(){
		oalertBg.style.display = "none";
		oClose.style.display = "none";
	}
	//点击图片
	oClose.onclick = function(){
		oalertBg.style.display = "none";
		oClose.style.display = "none";
	}
}